package com.springclouddemo.service.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springclouddemo.common.domain.User;
import com.xcloud.component.db.ExtMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<User>, ExtMapper<User> {
    @Select("select * from user where id=#{userId}")
    User findById(@Param("userId") int userId);
}
